import { get } from '@/lin/plugin/axios'

class Common {
  async getCountryList(id = 1) {
    const res = await get(`v1/area/all/${id}`)
    return res
  }

  async getProvinceList(id = '') {
    const res = await get(`v1/area/province/${id}`)
    return res
  }

  async getCityList(id = '') {
    const res = await get(`v1/area/city/${id}`)
    return res
  }
}
export default new Common()
